package com.example.crm;

import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.Jedis;


public class JedisTester {
    private Jedis jedis;

    @Before
    public void before(){
        jedis = new Jedis("127.0.0.1", 6379);
//        jedis.auth("foobared");
    }

    @Test
    public void test01(){
        jedis.set("name","你猜");
        String value = jedis.get("name");  //取出key为uname的值
        System.out.println("anme的值为："+ value);

    }
}
